﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;


namespace FXnaEngine.Graphics
{
    public struct VertexWater : IVertexType
    {
        public Vector3 Position;
        public Vector2 TexCoords;

        public static int SizeInBytes = (3 + 2) * sizeof(float);
        public static VertexDeclaration VertexDeclaration = new VertexDeclaration
        (
            new VertexElement(0, VertexElementFormat.Vector3, VertexElementUsage.Position, 0),
            new VertexElement(sizeof(float) * 3, VertexElementFormat.Vector2, VertexElementUsage.TextureCoordinate, 0)
        );

        public VertexWater(Vector3 pos, Vector2 texCoord)
            : this()
        {
            Position = pos;
            TexCoords = texCoord;
        }

        VertexDeclaration IVertexType.VertexDeclaration
        {
            get { return VertexWater.VertexDeclaration; }
        }
    }
}
